<style>
    .profile-avatar-container {
        position: relative;
        width: 100px;
        margin: 0 auto;
    }

    .profile-avatar-container .profile-user-img {
        width: 100px;
        height: 100px;
    }

    .profile-avatar-container .profile-avatar-text {
        display: none;
    }

    .profile-avatar-container:hover .profile-avatar-text {
        display: block;
        position: absolute;
        height: 100px;
        width: 100px;
        background: #444;
        opacity: .6;
        color: #fff;
        top: 0;
        left: 0;
        line-height: 100px;
        text-align: center;
    }

    .profile-avatar-container button {
        position: absolute;
        top: 0;
        left: 0;
        width: 100px;
        height: 100px;
        opacity: 0;
    }
	.form-group{clear:both; padding:6px 0;}
	.control-label{padding-top:8px;}
</style>
<div class="row animated fadeInRight">
    <div class="col-md-12">
        <div class="box box-success">
            <div class="panel-body">

                <form id="update-form" role="form" data-toggle="validator" method="POST" action="{:url('contents.yuangong/add')}">
                    {:token()}
                    <input type="hidden" id="c-avatar" name="row[avatar]" value=""/>


                        <div class="profile-avatar-container">
                            <img class="profile-user-img img-responsive img-circle plupload" src="{$admin.avatar|cdnurl|htmlentities}" alt="">
                            <div class="profile-avatar-text img-circle">{:__('Click to edit')}</div>
                            <button id="plupload-avatar" class="plupload" data-input-id="c-avatar"><i class="fa fa-upload"></i> {:__('Upload')}</button>
                        </div>
						
						


<div class="form-group">
	<label for="c-gonghao" class="control-label text-right col-sm-2">工号</label>
	<div class=" text-left col-sm-8">
		<input type="text" name="row[gonghao]" value="" id="c-gonghao" class="form-control" required="1">
	</div>
</div>


<div class="form-group">
	<label class="control-label  text-right col-sm-2">姓名</label>
	<div class=" text-left col-sm-8">
		<input type="text" name="row[truename]" value="" id="c-truename" class="form-control" required="1">
	</div>
</div>

<div class="form-group">
	<label class="control-label  text-right col-sm-2">昵称</label>
	<div class=" text-left col-sm-8">
		<input type="text" name="row[nickname]" value="" id="c-nickname" class="form-control" required="">
	</div>
</div>

<div class="form-group">
	<label class="control-label  text-right col-sm-2">性别</label>
	<div class=" text-left col-sm-8">
<div class="radio"><label for="row[sex]-1"><input id="row[sex]-1" name="row[sex]" type="radio" value="1"> 男</label> <label for="row[sex]-0"><input id="row[sex]-0" checked="checked" name="row[sex]" type="radio" value="0"> 女</label></div> 
	</div>
</div>




<div class="form-group">
	<label class="control-label  text-right col-sm-2">手机号</label>
	<div class=" text-left col-sm-8">
		<input type="text" name="row[mobile]" value="" id="c-mobile" class="form-control" required="">
	</div>
</div>

<div class="form-group">
	<label class="control-label  text-right col-sm-2">身份证</label>
	<div class=" text-left col-sm-8">
		<input type="text" name="row[cardno]" value="" id="c-cardno" class="form-control" required="">
	</div>
</div>

<div class="form-group">
	<label class="control-label  text-right col-sm-2">地址</label>
	<div class=" text-left col-sm-8">
		<input type="text" name="row[address]" value="" id="c-address" class="form-control" required="">
	</div>
</div>

<div class="form-group">
	<label class="control-label  text-right col-sm-2">状态</label>
	<div class=" text-left col-sm-8">
<div class="radio"><label for="row[tp]-1"><input id="row[tp]]-1" name="row[tp]]" type="radio" checked="checked" value="1"> 在职</label> <label for="row[tp]]-0"><input id="row[tp]]-0"  name="row[tp]]" type="radio" value="0"> 离职</label></div> 
	</div>
</div>

<div class="form-group">
	<label class="control-label  text-right col-sm-2">备注</label>
	<div class=" text-left col-sm-8">
		<textarea name="row[beizhu]" class="form-control"></textarea>
	</div>
</div>

<div class="form-group">
	<label class="control-label  text-right col-sm-2"> </label>
	<div class=" text-left col-sm-8">
                            <button type="submit" class="btn btn-success">{:__('Submit')}</button>
                            <button type="reset" class="btn btn-default">{:__('Reset')}</button>
	</div>
</div>



                </form>
            </div>
        </div>

    </div>
</div>
